<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/5
  Time: 10:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>rest简单演示</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/rest/rest01/1" method="get">
<input type="submit" value="查询">
</form>

<form action="${pageContext.request.contextPath}/rest/rest02/user" method="post">
    id：<input type="text" name="id"><p></p>
    名称：<input type="text" name="name"><p></p>
    <input type="submit" value="新增">
</form>


<form action="${pageContext.request.contextPath}/rest/rest03/user/1" method="post">
    id：<input type="text" name="id" value="1"><p></p>
    名称：<input type="text" name="name"><p></p>
    <input type="hidden" name="_method" value="put">
    <input type="submit" value="修改">
</form>


<form action="${pageContext.request.contextPath}/rest/rest04/1" method="post">
    <input type="hidden" name="_method" value="delete">
    <input type="submit" value="删除">
</form>

</body>
</html>
